package com.youlu.campus.entity.form;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.ArrayList;
import java.util.List;

/**
 * 用户提交的表单信息
 */
@Getter
@Setter
@Document(collection = "user_form_task_info")
public class UserFormTaskInfo extends EntityBase {
    @Indexed
    private String userId;
    /**
     * 活动ID
     */
    private String activityId;
    private String activityName;
    private String platform;
    private String appId;
    private String openId;
    private String name;
    private String universityId;
    private String universityName;
    @Indexed
    private String mobile;
    /**
     * 表单ID
     */
    @Indexed
    private String formTaskConfigId;
    /**
     * 状态:
     * todo:未完成
     * doing:填写中
     * done:完成
     */
    private String status;
    @Transient
    private List<UserFormTaskDetailInfo> items = new ArrayList<>();
    /**
     * 累加贡献值Task ID
     */
    @Indexed
    private String addQBizTaskId;

}
